package com.sihai.ehr.model.biz;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;

import com.sihai.core.BaseEntity;
import com.sihai.ehr.model.sys.ExaminePeriodEnum;
import com.sihai.ehr.model.sys.Organization;

/**
 * 考核周期实体类
 * 
 * @author henry
 * 
 */
@Entity
public class ExamPeriod extends BaseEntity<Long> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7609253910125617727L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;

	/** 考核周期类型 */
	@Enumerated(EnumType.STRING)
	private ExaminePeriodEnum periodType;

	/** 考核的年份 */
	private int examYear;

	/** 考核的月份:存入打分时上一个月的月份/年份 */
	private int examMonthly;

	/** 考核期数名称 */
	private String periodName;

	@Override
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public ExaminePeriodEnum getPeriodType() {
		return periodType;
	}

	public void setPeriodType(ExaminePeriodEnum periodType) {
		this.periodType = periodType;
	}

	public int getExamYear() {
		return examYear;
	}

	public void setExamYear(int examYear) {
		this.examYear = examYear;
	}

	public int getExamMonthly() {
		return examMonthly;
	}

	public void setExamMonthly(int examMonthly) {
		this.examMonthly = examMonthly;
	}

	public String getPeriodName() {
		return periodName;
	}

	public void setPeriodName(String periodName) {
		this.periodName = periodName;
	}
}
